package com.pureut.quality.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pureut.quality.domain.QualityPatrolInspectionDocument;
import com.pureut.quality.domain.dto.QualityInspectionDto;
import com.pureut.quality.domain.dto.QualityPatrolInspectionDocumentDto;
import com.pureut.quality.domain.dto.SampleInspectionDto;
import com.pureut.quality.domain.vo.PatrolInspectionDocumentVo;
import com.pureut.quality.domain.vo.QualityPatrolInspectionDocumentVo;
import com.pureut.quality.domain.vo.QualitySchemeConfigurationVo;

import java.util.List;

/***
 * 巡检单据service
 * Autho r:C
 * Date:2023/02/10 15:33
 * @DESC
 */
public interface QualityPatrolInspectionDocumentService extends IService<QualityPatrolInspectionDocument> {

    /**
     * 巡检单据列表
     */
    List<QualityPatrolInspectionDocumentDto> getFreezeList(QualityPatrolInspectionDocumentVo qualityPatrolInspectionDocumentVo);

    /**
     * 巡检单据新增
     */
    boolean add(QualityPatrolInspectionDocumentVo qualityPatrolInspectionDocumentVo) throws Exception;

    /**
     * 删除
     */
    boolean deleteByIds(String ids);

    /**
     * 获取检验项目数据
     */
    List<QualityInspectionDto> getItemMessage(QualitySchemeConfigurationVo qualitySchemeConfigurationVo);

    /**
     * 样本检验下方列表
     */
    List<SampleInspectionDto> getSampleDownList(QualitySchemeConfigurationVo qualitySchemeConfigurationVo);

    /**
     * 查看单据信息
     */
    QualityPatrolInspectionDocumentDto getViewById(Long id);

    /**
     * 修改
     */
    boolean updatePatrolInspectionDocument(QualityPatrolInspectionDocumentVo qualityPatrolInspectionDocumentVo);

    /**
     * 获取检验项目数据(巡检单据新增时)
     */
    List<SampleInspectionDto> getPatrolInspectionDocument(PatrolInspectionDocumentVo patrolInspectionDocumentVo);
}
